public class Ball{
  float x,y,velX,velY,dX,dY;
  int size;
  color cor;
  PImage b;
  Ball(){
    b=loadImage("bola//bola.png");
    dX=1;
    dY=1;
  }
  
  void move(){
    x+=velX*dX;
    y+=velY*dY;
  }
  
  void cor(color cor){
    this.cor=cor;
  }
  
  void desenha(){
    fill(cor,100);
    imageMode(CENTER);
    image(b,x,y);
    ellipse(x,y,size,size);
  }
  
}


